package com.slimbloody.client;

import io.grpc.ClientInterceptor;
import net.devh.boot.grpc.client.interceptor.GrpcGlobalClientInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

@Order(Ordered.LOWEST_PRECEDENCE)
@Configuration(proxyBeanMethods = false)
public class GlobalInterceptorConfiguration {
  @GrpcGlobalClientInterceptor
  ClientInterceptor logClientInterceptor() {
    return new LogGrpcInterceptor();
  }
}